package com.mca.framework.lambda;

import java.util.List;

/**
 * @Author: zhoupeng
 * @createTime: 2025年07月14日 22:07:37
 * @version: 1.0
 * @Description:
 * @copyright:
 */
public class StudentNameServiceImpl implements StudentService {

    @Override
    public Student getStudentInfo(List<Student> studentList, Student student) {

        for (Student s : studentList) {
            if (s.getName().equals(student.getName())){
                return s;
            }
        }
        return null;
    }
}
